Function.prototype.bind = function(obj){
    let args = Array.from(arguments);
    args = args.slice(1);
    obj.fn = this;
    return function(args2){
        obj.fn.apply(obj,args.concat(args2));
    } 
}